function timeStamp2String (time) {
  var datetime = new Date()
  datetime.setTime(time)
  var year = datetime.getFullYear()
  var month = datetime.getMonth() + 1
  var date = datetime.getDate()
  var hour = datetime.getHours()
  var minute = datetime.getMinutes()
  var second = datetime.getSeconds()
  var mseconds = datetime.getMilliseconds()
  return year + '-' + month + '-' + date + ' ' + hour + ':' + minute + ':' + second + '.' + mseconds
}

export default timeStamp2String
